import { Injectable } from '@angular/core';
import {ApiService, ServerConfigService} from '../../../ng-tools';
import {HttpClient} from '@angular/common/http';

@Injectable({
  providedIn: 'root'
})
export class DvbConfigService extends ApiService {

  constructor(http: HttpClient, serverConfig: ServerConfigService) {
    super(http, serverConfig);
    this.baseUrl = '/oplatform/config/';
    this.baseWebSocketUrl = '/device/';
    this.urls = {
      paginationUrl: '',
      // 获取网卡名称
      get_network_name: 'get_network_name/',
      // 设备cpu和内存实时信息
      realTimeInfo: 'real_time_info/', // ws
      updata_dvb_config: 'updata_dvb_config/',
      exec_shell_command: 'exec_shell_command/',
      get_device_base_info: 'get_device_base_info/',
      getNetworkInfo: 'get_network_info/',
      change_network_info: 'change_network_info/',
      change_network_status: 'change_network_status/',
      run_and_stop_channel_status: 'run_and_stop_channel_status/',
      get_running_channels: 'get_running_channels/',
      get_machine_code: 'get_machine_code/',
      ping: 'ping/',
      scanChannel: 'scan_channel/',
      is_scan_channel: 'is_scan_channel/',
      register: 'register/',
      get_running_channel_info: 'get_running_channel_info/',
      download_channel_file: 'download_channel_file/',
      post_channel_file: 'post_channel_file/',
      get_channels_running_time: 'get_channels_running_time/'
    };
  }
}
